<?php
$js = $gen['js'] == "1";
session_start();
if (!session_is_registered('admin')) exit();
$sql_screen = sqlite_query($config, "SELECT * FROM live WHERE alias='Screen'");
if (sqlite_num_rows($sql_screen) == 1) include('live.php');

echo "<table width=\"100%\" style=\"margin-top: 20px;\">\n";
echo "<tr>\n";
echo "<td width=\"140\"></td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=HOME','do')\">Home</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=BACK','do')\">Back</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=EXIT','do')\">Exit</button>\n";
echo "</td>\n";

echo "<td width=\"140\"></td>\n";
echo "</tr>\n";

echo "<tr>\n";
echo "<td colspan=\"5\" align=\"center\">-</td>\n";
echo "</tr>\n";

echo "<tr>\n";
echo "<td width=\"140\"></td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=UP','do')\">Up</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "\n";
echo "</td>\n";

echo "<td width=\"140\"></td>\n";
echo "</tr>\n";


echo "<tr>\n";
echo "<td width=\"140\"></td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=LEFT','do')\">Left</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=SELECT','do')\">Select</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=Right','do')\">Right</button>\n";
echo "</td>\n";

echo "<td width=\"140\"></td>\n";
echo "</tr>\n";


echo "<tr>\n";
echo "<td width=\"140\"></td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=DOWN','do')\">Down</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "\n";
echo "</td>\n";

echo "<td width=\"140\"></td>\n";
echo "</tr>\n";


echo "<tr>\n";
echo "<td colspan=\"5\" align=\"center\">-</td>\n";
echo "</tr>\n";


echo "<tr>\n";
echo "<td width=\"140\"></td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=PLAY','do')\">Play</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=PAUSE','do')\">Pause</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=STOP','do')\">Stop</button>\n";
echo "</td>\n";

echo "<td width=\"140\"></td>\n";
echo "</tr>\n";


echo "<tr>\n";
echo "<td width=\"140\"></td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=PREVIOUS','do')\">Previous</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=MENU','do')\">Menu</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=NEXT','do')\">NEXT</button>\n";
echo "</td>\n";

echo "<td width=\"140\"></td>\n";
echo "</tr>\n";


echo "<tr>\n";
echo "<td colspan=\"5\" align=\"center\">-</td>\n";
echo "</tr>\n";  


echo "<tr>\n";
echo "<td width=\"140\"></td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=VOLUP','do')\">Vol+</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=CHANNELUP','do')\">CH+</button>\n";
echo "</td>\n";

echo "<td width=\"140\"></td>\n";
echo "</tr>\n";


echo "<tr>\n";
echo "<td width=\"140\"></td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=MUTE','do')\">Mute</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "\n";
echo "</td>\n";

echo "<td width=\"140\"></td>\n";
echo "</tr>\n";


echo "<tr>\n";
echo "<td width=\"140\"></td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=VOLDN','do')\">Vol-</button>\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "\n";
echo "</td>\n";

echo "<td width=\"100\" align=\"center\" style=\"border: thin solid black; margin: 1px;\">\n";
echo "<button onclick=\"window.open('do.php?what=command&cmd=CHANNELDN','do')\">CH-</button>\n";
echo "</td>\n";

echo "<td width=\"140\"></td>\n";
echo "</tr>\n";

echo "</table>\n";
?>
